#ifndef MYMODEL_H
#define MYMODEL_H

#include <QSqlQueryModel>

#include "logger.h"
#include "my_defs.h"

class MyTabModel : public QSqlQueryModel
{
    Q_OBJECT
public:
    MyTabModel(QObject *parent = 0);
    Qt::ItemFlags flags(const QModelIndex &index) const;
    QVariant data(const QModelIndex &index,
                int role = Qt::DisplayRole) const;

    void setupHeader();
    void refresh();
private:

public slots:

};

#endif // MYMODEL_H
